import BasePool from "../../db/basePool";

export default class loginModel {
    /**
     * 登录
     **/
    async login(params){
        let sql="select loginUser,name from tbl_stock_user where status=1 and loginUser='"+params.username+"' and loginPwd='"+params.password+"'";
        let res = await new BasePool().query(sql);
        return res;
    }
}
